package tote.model;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

/**
 */
@Entity
@Table(name = "tUserBetByMatch")
@IdClass(UserBetByMatchPK.class)
public class UserBetByMatch implements Serializable {
    private static final long serialVersionUID = 2607511733842056964L;

    @Id
    @Column(name = "username", insertable = true, updatable = true)
    private String username;

    @Id
    @Column(name = "matchid", insertable = true, updatable = true)
    private Integer matchid;

    @Column(name = "score1")
    private Integer score1;

    @Column(name = "score2")
    private Integer score2;

    @Column(name = "status_")
    private Integer status_;

    @Column(name = "updtime")
    private Timestamp updtime;

    @Column(name = "upduser")
    private String upduser;

    public void setUsername(String username) {
	this.username = username;
    }

    public String getUsername() {
	return username;
    }

    public Integer getMatchid() {
	return matchid;
    }

    public void setMatchid(Integer matchid) {
	this.matchid = matchid;
    }

    public Integer getScore1() {
	return score1;
    }

    public void setScore1(Integer score1) {
	this.score1 = score1 == null ? 0 : score1;
    }

    public Integer getScore2() {
	return score2;
    }

    public void setScore2(Integer score2) {
	this.score2 = score2 == null ? 0 : score2;
    }

    public void setStatus_(Integer status_) {
	this.status_ = status_;
    }

    public Integer getStatus_() {
	return status_;
    }

    public void setUpdtime(Timestamp updtime) {
	this.updtime = updtime;
    }

    public Timestamp getUpdtime() {
	return updtime;
    }

    public void setUpduser(String upduser) {
	this.upduser = upduser;
    }

    public String getUpduser() {
	return upduser;
    }

}
